home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Developer Toolbox 6.1
/
SGI Developer Toolbox 6.1 - Disc 4.iso
/
public
/
Xpm
/
pixmap
/
Imakefile
< prev
next >
Wrap
Makefile
|
1994-08-01
|
2KB
|
75 lines
#ifdef BandAidCompiler
#include BandAidCompiler
#endif
/*
* Author: Lionel Mallet, Simulog
* Created: April 20, 1991.
*/
# def/undef USE_MOTIF there if you want Pixmap to use Motif or not.
# define USE_MOTIF 1
# Specify here your Xpm installation directories
XPM_INCLUDEDIR = $(INCDIR)
XPM_LIBDIR = ../lib/xpm-3.2g/lib
EXTRA_INCLUDES = -I. -I.. -I$(XPM_INCLUDEDIR)
#ifdef USE_MOTIF
# Motif configuration
LOCAL_DEFINES = $(IEEE_DEFS) $(SIGNAL_DEFINES) -D_NO_PROTO
DEPLIBS = /usr/lib/libXm.a $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
LOCAL_LIBRARIES = -L$(XPM_LIBDIR) -lXpm -lXm $(XMULIB) $(XTOOLLIB) $(XLIB)
BITMAPS = DownM FlipHorizM FlipVertM FoldM LeftM RightM RotateLeftM \
RotateRightM Stipple UpM
#else
# Athena configuration
LOCAL_DEFINES = $(IEEE_DEFS) $(SIGNAL_DEFINES) -DUSE_ATHENA
DEPLIBS = XawClientDepLibs
LOCAL_LIBRARIES = -L$(XPM_LIBDIR) -lXpm XawClientLibs
BITMAPS = Down FlipHoriz FlipVert Fold Left Right RotateLeft \
RotateRight Stipple Up
#endif
SYS_LIBRARIES = -lm
SRCS = PixEdit.c Pixmap.c Dialog.c
OBJS = PixEdit.o Pixmap.o Dialog.o
#if ProjectX != 5
DEFINES = $(LOCAL_DEFINES) -DXPointer="char *"
#else
DEFINES = $(LOCAL_DEFINES)
#endif
ComplexProgramTarget(pixmap)
InstallAppDefaults(Pixmap)
InstallMultipleFlags($(BITMAPS), $(INCDIR)/bitmaps/Pixmap, $(INSTDATFLAGS))
AllTarget(dotpixmap)
all:: Pixmap.ad
clean:: Pixmap.ad
$(RM) Pixmap.ad
#ifdef USE_MOTIF
Pixmap.ad: PixmapMotifAD
@echo Pixmap compiled with Motif.
@echo "*BitmapFilePath: $(INCDIR)/bitmaps/Pixmap" > Pixmap.ad
@cat PixmapMotifAD >> Pixmap.ad
#else
Pixmap.ad: PixmapAthenaAD
@echo Pixmap compiled with Athena.
@echo "*BitmapFilePath: $(INCDIR)/bitmaps/Pixmap" > Pixmap.ad
@cat PixmapAthenaAD >> Pixmap.ad
#endif
dotpixmap: $(LIBDIR)/rgb.txt
awk 'NF == 4 && $$4 !~ /[Gg]rey/ && $$4 !~ /[0-9]/ {print $$4}' $(LIBDIR)/rgb.txt > dotpixmap
doc: Pixmap.tex
latex Pixmap.tex
latex Pixmap.tex
dvps -o Pixmap.ps Pixmap.dvi